#coding:utf-8

from django.http import HttpResponse
import cx_Oracle

def first_page(request):
    con = cx_Oracle.connect("xxx/xxx$@cd")
    cursor = con.cursor()
    query1 = cursor.execute("select created from all_objects where object_name='FZT_DD' and owner='STAT_YEGUAN'")
    rows = cursor.fetchall()
    rowCount1 = 'FZT_DD表的建立时间是: '+ str(rows[0][0])
    
    query1 = cursor.execute("select sys_date from intf_exter_audit where rownum=1")
    rows = cursor.fetchall()
    rowCount2 = '稽核外挂表的处理时间是: '+ str(rows[0][0])
    
    rowCount = rowCount1 + '   ' + rowCount2
    cursor.close()
    con.close()
    return HttpResponse("<p>%s</p>" %rowCount)